# -*- coding: utf-8 -*-
# @Time : 2019/2/24 18:28
# @Author : chen
# @Site : 
# @File : works.py
# @Software: PyCharm
import requests
import time

from django.http import JsonResponse


def count_words_at_url(url):
    resp = requests.get(url)
    time.sleep(1)
    return len(resp.text.split())


def tosleep(num):
    time.sleep(num + 10)
    return num


def job1():
    time.sleep(2)
    return 1

def job2():
    time.sleep(3)
    return 2
